package com.jin.lazytool.task;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class JinTask  implements Serializable {

    private String name;

    private List<JinTaskGroup> groups = new ArrayList<>();

    public void addTaskGroup(JinTaskGroup taskGroup){
        groups.add(taskGroup);
    }
    public void removeTaskGroup(JinTaskGroup taskGroup){
        groups.remove(taskGroup);
    }

    public List<JinTaskGroup> getGroups() {
        return groups;
    }

    public void setGroups(List<JinTaskGroup> groups) {
        this.groups = groups;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}
